﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;

namespace IAD2
{
    class RandomPoints : PointGenerator
    {
        public RandomPoints(Neuron xRange, Neuron yRange , int number)
        {
            this.points = new List<Neuron>();
            Random random = new Random();
            for (int i = 0; i < number; i++)
            {

                double x = (random.NextDouble() * (xRange.X - xRange.Y) - ((xRange.X - xRange.Y) / 2));
                double y = (random.NextDouble() * (yRange.X - yRange.Y) - ((yRange.X - yRange.Y) / 2));
                this.points.Add(new Neuron(x, y));
            }
        }
    }
}
